import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';

// router
import { MainRoutingModule } from './main-routing.module';

// pipes
import { GetParentNamePipe } from '../../core/pipes/get-parent-name.pipe';

// components
import { MainComponent } from './components/main/main.component';
import { GradeManagementComponent } from './components/system/grade-management/grade-management.component';
import { SubjectManagementComponent } from './components/system/subject-management/subject-management.component';
import { ClassManagementComponent } from './components/system/class-management/class-management.component';
import { RoleManagementComponent } from './components/system/role-management/role-management.component';
import { StudentManagementComponent } from './components/system/student-management/student-management.component';
import { UserManagementComponent } from './components/system/user-management/user-management.component';

@NgModule({
    imports: [
        BrowserModule,
        BrowserAnimationsModule,
        FormsModule,
        ReactiveFormsModule,
        NgZorroAntdModule.forRoot(),
        MainRoutingModule
    ],
    providers: [],
    declarations: [
        MainComponent,
        GetParentNamePipe,
        GradeManagementComponent,
        SubjectManagementComponent,
        ClassManagementComponent,
        RoleManagementComponent,
        StudentManagementComponent,
        UserManagementComponent,
    ]
})

export class MainModule { }